package com.demo.zhihu.model;

import org.apache.ibatis.type.Alias;

@Alias("Question")
public class Question {
	private int id;
	private int asker;
	private String title;
	private String summary;
	
	private int answers;
	
	public Question() {}
	
	public Question(int id, int answers) {
		this.setId(id);
		this.setAnswers(answers);
	}
	
	public Question(int asker, String title, String summary) {
		this.setAsker(asker);
		this.title = title;
		this.summary = summary;
	}
	
	public String getTitle() {
		return title;
	}
	
	public void setTitle(String title) {
		this.title = title;
	}
	
	public String getSummary() {
		return summary;
	}
	
	public void setsummary(String summary) {
		this.summary = summary;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public int getAsker() {
		return asker;
	}

	public void setAsker(int asker) {
		this.asker = asker;
	}

	public int getAnswers() {
		return answers;
	}

	public void setAnswers(int answers) {
		this.answers = answers;
	}
	
	

}
